Skip to content

Update Add button state in Keymap Editor#191

Merged
nhktmdzhg merged 5 commits intoLotusInputMethod:devfrom
loccun:keymap-ui
Mar 30, 2026
Merged

Update Add button state in Keymap Editor#191
nhktmdzhg merged 5 commits intoLotusInputMethod:devfrom
loccun:keymap-ui

Conversation

@loccun
Copy link
Copy Markdown
Contributor

@loccun loccun commented Mar 30, 2026

Làm cho hành vi của nút Add/Update của bên keymap giống như bên macro, nếu trùng lặp thì thay Add -> Update, nếu rỗng thì ngăn không cho Add.

…98958473316767

🎨 Palette: Update Add button state in Keymap Editor
@github-project-automation github-project-automation bot moved this to Backlog in Kanban Mar 30, 2026
@loccun loccun marked this pull request as draft March 30, 2026 08:17
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the keymap editor UI by dynamically updating the 'Add' button to an 'Update' button when an existing key is entered and disabling it when the input field is empty. Review feedback suggests optimizing the implementation by removing redundant signal connections and function calls, and refactoring the key-searching logic into a dedicated helper method to improve maintainability and reduce code duplication.

@loccun loccun marked this pull request as ready for review March 30, 2026 08:46
@nhktmdzhg
Copy link
Copy Markdown
Collaborator

Anh ấy đã trở lại 🐧

@loccun loccun marked this pull request as draft March 30, 2026 09:53
@loccun loccun marked this pull request as ready for review March 30, 2026 10:42
@nhktmdzhg nhktmdzhg merged commit 6b70ed2 into LotusInputMethod:dev Mar 30, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Kanban Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants